<?php
class C_mail extends controller{
	
	/*
	 * 发邮件测试
	 */
	public function index(){
		try{
			$mail = new T_mail(array('exception'=>true,'Password'=>''));
			$mail->AddAddress('470117100@163.com');
			$mail->Subject = '哈哈';
			$mail->MsgHTML('hello!<b>哈哈</b>');
			$mail->Send();		
		}catch (phpmailerException $e){
			echo $e->getMessage();
		}
	}
}